package topcoder;

public class MagicalGirlLevelOneDivTwo {

	public double theMinDistance(int d, int x, int y){
		return Math.sqrt(Math.pow(Math.max(Math.abs(x) - d, 0), 2) + Math.pow(Math.max(Math.abs(y) - d, 0), 2));
	}
	
}
